#@embedLayout()


#define content()

<table class="table table-striped table-bordered" style="maring:5px;">
    <tr class="success" style="text-align: center;font-weight: bold;">
        <td>安全等级</td>
        <td>证书授权数量</td>
        <td>证书使用数量</td>
    </tr>
    #for(certificateAuth :certificateAuthList)
    <tr style="text-align: center;">
        <td>#(certificateAuth.certAuthNo)</td>
        <td>#(certificateAuth.certAuthNoNum)</td>
        <td>#(certificateAuth.certMaxNo)</td>
    </tr>
    #end

    <tr class="success" style="text-align: center;font-weight: bold;">
        <td>安全等级</td>
        <td>认证器</td>
        <td>使用数量</td>
    </tr>

    #for(certificate :certificateList)
        <tr style="text-align: center;">
            <td>#(certificate.dict_text)</td>
            <td>#(certificate.aaid)</td>
            <td>#(certificate.cert_no)</td>
        </tr>
    #end
</table>

#end

#define css()


#end


#define js()

<script type="text/javascript">

    function datagrid_save(opr_type) {
        var url = '';
        if (opr_type == 'add') {
            url = contextRootPath + '/servicePlugin/save';
        } else {
            url = contextRootPath + '/servicePlugin/update';
        }

        $('#formId').form('submit', {
            url: url,
            onSubmit: function () {
                var flag = $(this).form('enableValidation').form('validate');
                if (flag) {
                    showProcess(true, '温馨提示', '正在提交数据...');
                }
                return flag;
            },
            success: function (data) {
                showProcess(false);
                var params = {};
                params.element = _datagrid;
                params.data = data;
                resultCallback(params);
            },
            onLoadError: function () {
                showProcess(false);
                $.messager.alert('温馨提示', '由于网络或服务器太忙，提交失败，请重试！');
            }
        });
    }

</script>

#end


